import request from '@/utils/request'

export function formField(procDefId) {
  const param = {
    params: {
      procDefId: procDefId
    }
  }
  return request.post('buss/field/list', null, param)
}

export function add(data) {
  return request.post('buss/field/save', data)
}

export function edit(data) {
  return request.post('buss/field/update', data)
}

export function findOne(data) {
  return request.post('buss/field/findOne?id=' + data)
}

export function del(data) {
  return request.post('buss/field/delete', data)
}

export default {add, del, formField, findOne, edit}
